#include <iostream>

using namespace std;

class Simple {
public:
    static Simple *getinstance(int n) {
        static Simple m_simple(10);
        return &m_simple;
    }
    int getNumber(){
        return m_n;
    }
private:
    Simple(int n) :
        m_n(n) {}
    int m_n;
};

int main(int argc, const char *argv[])
{
    Simple *test_ = Simple::getinstance(10);
    cout << test_->getNumber() << endl;
    return 0;
}
